home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / win / whttpd14.zip / SUPPORT / SIGHTTPD.TXT < prev    next >
Text File  |  1994-06-05  |  1KB  |  24 lines

  1. sighttpd is a DLL that sends a message to a running httpd
  2. that causes it to cycle its logfile(s). The log is renamed
  3. '.001', and older logs are renamed from '.001' to '.002' and so
  4. forth. It will keep 30 old logs. The 31st is deleted.
  5.  
  6. The DLL exports one function: "SigHTTPD". It returns an integer
  7. that is non-zero if it succeeded, or zero if it failed (usually
  8. because httpd isn't running). It takes 2 integer parameters:
  9. a flag to cycle the access log, and a flag to cycle the error
  10. log, in that order. The httpd server must be running. The flags
  11. are non-zero for TRUE and zero for FALSE.
  12.  
  13. I wrote the DLL to use with a Visual Basic server usage monitor
  14. that I am developing. The VB declaration is as follows (the "\"
  15. is a line continuation, the declaration must be all on one line
  16. (UGH!)):
  17.  
  18. Declare Function SigHTTPD Lib "sighttpd.dll" \
  19.     (ByVal AccLog As Integer, ByVal ErrLog As Integer) As Integer
  20.  
  21. NOTE: Don't cycle your access log if you are running wusage.
  22. It assumes that all of the data is in the live access log.
  23.  
  24.